package top.xbaoziplus.company.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import top.xbaoziplus.company.empty.Position;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Entity top.xbaoziplus.company.empty.Position
 */
@Repository
public interface PositionMapper extends BaseMapper<Position> {
    /**
     * 根据ID更新职位状态
     */
    @Update("update tb_position set status = 0 where id = #{id};")
    Boolean updateStatusById(Integer id);

}




